<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Demo</title>
</head>
<body>
<p th:text="'测试1'"></p>
<p th:text="'测试2'"></p>

<p th:text="'测试3'+ ${name1}"></p>
</body>
</html>